package com.kamkor.interviewer.shared;

import java.io.Serializable;

/**
 * Shared package version of QuestionAnswer uses String insteed
 * of Text types for question and answer.
 * 
 * Text is not emulated by GWT. It won't compile into java script.
 * 
 * @author kamkor
 *
 */
@SuppressWarnings("serial")
public class QuestionAnswerDetails implements Serializable {	
	
	/** QuestionAnswer datastore id */
	private Long id;	
	
	/** id of interview to which this QuestionAnswer belongs */
	private Long interviewId;
	
	/** QuestionAnswer position in interview. Starts with 0. */
	private Long positionNumber;
	
	/** Question **/
	private String question;
	
	/** Short version of question, for example a substring */
	private String questionShort;
	
	/** Answer **/
	private String answer;
	
	public QuestionAnswerDetails() { }	
	
	public QuestionAnswerDetails(Long interviewId, String question, String answer) {
		this.interviewId = interviewId;
		this.question = question;
		this.answer = answer;
	}
	
	public QuestionAnswerDetails(Long id, Long interviewId, String question, String answer) {
		this(interviewId, question, answer);
		this.id = id;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getInterviewId() {
		return interviewId;
	}

	public void setInterviewId(Long interviewId) {
		this.interviewId = interviewId;
	}

	public String getQuestion() {
		return question;
	}

	public void setQuestion(String question) {
		this.question = question;
	}
	
	public String getQuestionShort() {
		return questionShort;
	}

	public void setQuestionShort(String questionShort) {
		this.questionShort = questionShort;
	}	

	public String getAnswer() {
		return answer;
	}

	public void setAnswer(String answer) {
		this.answer = answer;
	}

	public void setPositionNumber(Long positionNumber) {
		this.positionNumber = positionNumber;
	}

	public Long getPositionNumber() {
		return positionNumber;
	}	
}
